package com.custom.base.view;

import android.content.Context;
import android.graphics.Color;
import android.os.Build;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import com.custom.base.util.SDViewUtil;

public class LinearLayoutShadow extends LinearLayout {
    @RequiresApi(api = Build.VERSION_CODES.P)
    public LinearLayoutShadow(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);

        setElevation(20);
        setOutlineSpotShadowColor(Color.parseColor("#f8f9fe"));
        View view = new View(context);
        view.setLayoutParams(new LinearLayout.LayoutParams(
                0,
                0
        ));
        view.setVisibility(View.GONE);
        addView(view);
    }
}
